package com.example.mongodb_demo.doman;

import java.util.List;

/**
 * @author aguang
 *
 * 菜品分类
 */
public class Category {
    private String id;
    private String name;
    private Integer sort;
    private String desc;

    private List<Dish> dishes;

    public Category() {
    }

    public Category(String id, String name, Integer sort, String desc, List<Dish> dishes) {
        this.id = id;
        this.name = name;
        this.sort = sort;
        this.desc = desc;
        this.dishes = dishes;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<Dish> getDishes() {
        return dishes;
    }

    public void setDishes(List<Dish> dishes) {
        this.dishes = dishes;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", desc='" + desc + '\'' +
                ", dishes=" + dishes +
                '}';
    }
}
